<div class="site-tree-mobile hide"><i class="iconfont icon-you"></i></div>
<div class="ucenter-left">
<div class="userinfo">
    <div class="media">
      <div class="media-left">
          <span>
    <img class="avatar-md middleimg" src="{$nowuserinfo.userhead|getheadurl}" alt="{$nowuserinfo['nickname']}">
           
            
          </span>
  
      </div>
      <div class="media-body">
        <div class="title">
              <span class="link-light ellipsis" >{$nowuserinfo['nickname']}</span>
             {if condition="$nowuserinfo['hasrz'] eq 1"} <span class="iconfont {$nowuserinfo['icon']}"  title="{$nowuserinfo['type']}"></span>{/if}
        </div>
         {if condition="$nowuserinfo['hasrz'] eq 1"}
         <span>{if condition="$nowuserinfo['hasrz'] neq 1"}

{if condition="$nowuserinfo['description'] neq null"}
{$nowuserinfo['description']}
{else/}
这个家伙很懒，什么都没有留下！
{/if}

{else/}

{$nowuserinfo['statusdes']}

{/if}</span>
         {else/}
         <span>{$nowuserinfo['grades']|getusergrade=$nowuserinfo['id']}</span>
         {/if}
      
      </div>
    </div>
</div>


<div class=" user-level">


</div>

<div class="mydoc-list" id="usercentermenu">
<ul>

<li {if condition="$actionname eq 'user/userfocus'"}class="current"{/if} ><a href="{:es_url('user/userfocus')}"><i class="iconfont icon-zhuanjialiebiaohaoyouguanxianniu"></i> 好友关系</a></li>
<li {if condition="$actionname eq 'user/mytopic'"}class="current"{/if}><a href="{:es_url('user/mytopic')}" ><i class="iconfont icon-pinglun"></i> 我的帖子</a></li>
<li {if condition="$actionname eq 'user/mess'"}class="current"{/if}><a href="{:es_url('user/mess')}"><i class="iconfont icon-remind"></i> 我的消息</a></li>
</ul>
</div>
</div>
<script>
$(function(){
	var obj;
	
	$('#usercentermenu li').hover(function(){
		
		obj=$('#usercentermenu li.current');
		
		$(obj).removeClass('current');
		$(this).addClass('current');
		
	},function(){
		
		$(obj).addClass('current').siblings().removeClass('current');
		
	});
	var close=0;
	$('.site-tree-mobile').click(function(){
		var top=$('.aw-top-menu-wrap').offset().top+$('.aw-top-menu-wrap').height();
		if(close==1){
			$(this).find('.iconfont').removeClass('icon-zuo').addClass('icon-you');
			
			$('.ucenter-left').animate({ 
			    left: '-300px',
			
			  }, 500 );
			close=0;
		}else{
			$(this).find('.iconfont').addClass('icon-zuo').removeClass('icon-you');
			$('.ucenter-left').css('top',top);
			$('.ucenter-left').animate({ 
				    left: '0px',
				   
				  }, 500 );

			close=1;
		}
		
		
		
	});
	
});

</script>